| Filename | (eval 431)[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Sub/Quote.pm:3] |
| Statements | Executed 2593358 statements in 2.12s |
| Eval Invoked At | /Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Sub/Quote.pm line 3 |
| Sibling evals | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113 |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 72038 | 2 | 2 | 2.03s | 3.14s | JSON::Schema::Modern::Annotation::new |
| 1 | 1 | 1 | 12µs | 30µs | JSON::Schema::Modern::Annotation::BEGIN@11.334 |
| 1 | 1 | 1 | 7µs | 19µs | JSON::Schema::Modern::Annotation::BEGIN@74 |
| 1 | 1 | 1 | 5µs | 15µs | JSON::Schema::Modern::Annotation::BEGIN@80 |
| 1 | 1 | 1 | 5µs | 12µs | JSON::Schema::Modern::Annotation::BEGIN@90 |
| 1 | 1 | 1 | 4µs | 4µs | JSON::Schema::Modern::Annotation::BEGIN@16.335 |
| 1 | 1 | 1 | 3µs | 9µs | JSON::Schema::Modern::Annotation::BEGIN@85 |
| 1 | 1 | 1 | 3µs | 8µs | JSON::Schema::Modern::Annotation::BEGIN@98 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | { | ||||
| 2 | 2 | 1µs | my $isa_check_for_unknown = ${$_[1]->{"\$isa_check_for_unknown"}}; | ||
| 3 | 1 | 0s | my $_UNQUOTED = ${$_[1]->{"\$_UNQUOTED"}}; | ||
| 4 | 1 | 0s | my $isa_check_for_keyword = ${$_[1]->{"\$isa_check_for_keyword"}}; | ||
| 5 | 1 | 1µs | my $coerce_for_absolute_5fkeyword_5flocation = ${$_[1]->{"\$coerce_for_absolute_5fkeyword_5flocation"}}; | ||
| 6 | 1 | 0s | my $isa_check_for_absolute_5fkeyword_5flocation = ${$_[1]->{"\$isa_check_for_absolute_5fkeyword_5flocation"}}; | ||
| 7 | 1 | 0s | my $_QUOTED = ${$_[1]->{"\$_QUOTED"}}; | ||
| 8 | 1 | 1µs | my $isa_check_for_instance_5flocation = ${$_[1]->{"\$isa_check_for_instance_5flocation"}}; | ||
| 9 | 1 | 0s | my $isa_check_for_keyword_5flocation = ${$_[1]->{"\$isa_check_for_keyword_5flocation"}}; | ||
| 10 | package JSON::Schema::Modern::Annotation; | ||||
| 11 | 2 | 49µs | 2 | 48µs | # spent 30µs (12+18) within JSON::Schema::Modern::Annotation::BEGIN@11.334 which was called:
# once (12µs+18µs) by Sub::Quote::_clean_eval at line 11 # spent 30µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@11.334
# spent 18µs making 1 call to warnings::unimport |
| 12 | # spent 3.14s (2.03+1.11) within JSON::Schema::Modern::Annotation::new which was called 72038 times, avg 44µs/call:
# 72037 times (2.03s+1.11s) by JSON::Schema::Modern::Utilities::A at line 256 of JSON/Schema/Modern/Utilities.pm, avg 44µs/call
# once (30µs+20µs) by JSON::Schema::Modern::Utilities::A at line 177 of Sub/Defer.pm | ||||
| 13 | ($_QUOTED,$_UNQUOTED) if 0; | ||||
| 14 | # BEGIN quote_sub PRELUDE | ||||
| 15 | package JSON::Schema::Modern::Annotation; | ||||
| 16 | # spent 4µs within JSON::Schema::Modern::Annotation::BEGIN@16.335 which was called:
# once (4µs+0s) by Sub::Quote::_clean_eval at line 21 | ||||
| 17 | 1 | 1µs | $^H = 2018; | ||
| 18 | 1 | 0s | ${^WARNING_BITS} = "UUUUUUUUUUUUUUUUUUUU"; | ||
| 19 | 1 | 3µs | %^H = ( | ||
| 20 | ); | ||||
| 21 | 1 | 213µs | 1 | 4µs | } # spent 4µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@16.335 |
| 22 | # END quote_sub PRELUDE | ||||
| 23 | 72037 | 19.5ms | my $invoker = CORE::shift(); | ||
| 24 | 72037 | 27.9ms | my $class = CORE::ref($invoker) ? CORE::ref($invoker) : $invoker; | ||
| 25 | 72037 | 25.0ms | if ($class ne "JSON::Schema::Modern::Annotation") { | ||
| 26 | if ($Moo::MAKERS{$class}) { | ||||
| 27 | if ($Moo::MAKERS{$class}{constructor}) { | ||||
| 28 | package JSON::Schema::Modern::Annotation; | ||||
| 29 | return $invoker->SUPER::new(@_); | ||||
| 30 | } | ||||
| 31 | Moo->_constructor_maker_for($class); | ||||
| 32 | return $invoker->new(@_); | ||||
| 33 | } elsif ($INC{"Moose.pm"} and my $meta = Class::MOP::get_metaclass_by_name($class)) { | ||||
| 34 | return $meta->new_object( | ||||
| 35 | $class->can("BUILDARGS") ? $class->BUILDARGS(@_) | ||||
| 36 | : $class->Moo::Object::BUILDARGS(@_) | ||||
| 37 | ); | ||||
| 38 | } | ||||
| 39 | } | ||||
| 40 | my $args = scalar @_ == 1 | ||||
| 41 | ? CORE::ref $_[0] eq 'HASH' | ||||
| 42 | 72037 | 194ms | ? { %{ $_[0] } } | ||
| 43 | : Carp::croak("Single parameters to new() must be a HASH ref" | ||||
| 44 | . " data => ". $_[0]) | ||||
| 45 | : @_ % 2 | ||||
| 46 | ? Carp::croak("The new() method for $class expects a hash reference or a" | ||||
| 47 | . " key/value list. You passed an odd number of arguments") | ||||
| 48 | : {@_} | ||||
| 49 | ; | ||||
| 50 | 72037 | 104ms | if (my @missing = grep !exists $args->{$_}, "annotation", "instance_location", "keyword", "keyword_location") { | ||
| 51 | Carp::croak("Missing required arguments: ".CORE::join(', ', sort @missing)); | ||||
| 52 | } | ||||
| 53 | 72037 | 35.1ms | my $new = bless({}, $class);; | ||
| 54 | 72037 | 21.9ms | (exists $args->{"absolute_keyword_location"} and ($new->{"absolute_keyword_location"} = scalar do { my $value = do { | ||
| 55 | 72037 | 112ms | local $Method::Generate::Accessor::CurrentAttribute = { | ||
| 56 | init_arg => "absolute_keyword_location", | ||||
| 57 | name => "absolute_keyword_location", | ||||
| 58 | step => "coercion", | ||||
| 59 | }; | ||||
| 60 | 72037 | 32.4ms | (my $_return), | ||
| 61 | (my $_error), (my $_old_error = $@); | ||||
| 62 | 72037 | 30.6ms | (eval { | ||
| 63 | ($@ = $_old_error), | ||||
| 64 | ($_return = | ||||
| 65 | 72037 | 153ms | 72037 | 1.05s | $coerce_for_absolute_5fkeyword_5flocation->($args->{"absolute_keyword_location"})), # spent 1.05s making 72037 calls to JSON::Schema::Modern::Annotation::__ANON__[JSON/Schema/Modern/Annotation.pm:35], avg 15µs/call |
| 66 | 1 | ||||
| 67 | } or | ||||
| 68 | $_error = CORE::ref $@ ? $@ : "coercion for \"absolute_keyword_location\" failed: ".$@); | ||||
| 69 | 72037 | 24.5ms | ($@ = $_old_error), | ||
| 70 | (defined $_error and CORE::die $_error); | ||||
| 71 | 72037 | 70.1ms | $_return; | ||
| 72 | } | ||||
| 73 | ; | ||||
| 74 | 216113 | 340ms | 144076 | 60.8ms | # spent 19µs (7+12) within JSON::Schema::Modern::Annotation::BEGIN@74 which was called:
# once (7µs+12µs) by Sub::Quote::_clean_eval at line 74 # spent 32.5ms making 72037 calls to Scalar::Util::blessed, avg 451ns/call
# spent 28.3ms making 72037 calls to UNIVERSAL::isa, avg 392ns/call
# spent 19µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@74
# spent 12µs making 1 call to warnings::unimport |
| 75 | $value | ||||
| 76 | } | ||||
| 77 | )), | ||||
| 78 | (exists $args->{"annotation"} and ($new->{"annotation"} = $args->{"annotation"})), | ||||
| 79 | 72037 | 19.2ms | (exists $args->{"instance_location"} and ($new->{"instance_location"} = scalar do { my $value = $args->{"instance_location"}; | ||
| 80 | 288150 | 107ms | 2 | 25µs | # spent 15µs (5+10) within JSON::Schema::Modern::Annotation::BEGIN@80 which was called:
# once (5µs+10µs) by Sub::Quote::_clean_eval at line 80 # spent 15µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@80
# spent 10µs making 1 call to warnings::unimport |
| 81 | $value | ||||
| 82 | } | ||||
| 83 | )), | ||||
| 84 | 72037 | 24.2ms | (exists $args->{"keyword"} and ($new->{"keyword"} = scalar do { my $value = $args->{"keyword"}; | ||
| 85 | 288150 | 90.4ms | 2 | 15µs | # spent 9µs (3+6) within JSON::Schema::Modern::Annotation::BEGIN@85 which was called:
# once (3µs+6µs) by Sub::Quote::_clean_eval at line 85 # spent 9µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@85
# spent 6µs making 1 call to warnings::unimport |
| 86 | $value | ||||
| 87 | } | ||||
| 88 | )), | ||||
| 89 | 72037 | 20.6ms | (exists $args->{"keyword_location"} and ($new->{"keyword_location"} = scalar do { my $value = $args->{"keyword_location"}; | ||
| 90 | 288150 | 79.3ms | 2 | 19µs | # spent 12µs (5+7) within JSON::Schema::Modern::Annotation::BEGIN@90 which was called:
# once (5µs+7µs) by Sub::Quote::_clean_eval at line 90 # spent 12µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@90
# spent 7µs making 1 call to warnings::unimport |
| 91 | $value | ||||
| 92 | } | ||||
| 93 | )), | ||||
| 94 | 72037 | 459ms | ($new->{"unknown"} = scalar do { my $value = ( | ||
| 95 | exists $args->{"unknown"} | ||||
| 96 | 72037 | 28.5ms | ? $args->{"unknown"} | ||
| 97 | : 0); | ||||
| 98 | 216113 | 104ms | 2 | 13µs | # spent 8µs (3+5) within JSON::Schema::Modern::Annotation::BEGIN@98 which was called:
# once (3µs+5µs) by Sub::Quote::_clean_eval at line 98 # spent 8µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@98
# spent 5µs making 1 call to warnings::unimport |
| 99 | $value | ||||
| 100 | } | ||||
| 101 | ), | ||||
| 102 | return $new; | ||||
| 103 | } | ||||
| 104 | 1 | 1µs | $$_UNQUOTED = \&new; | ||
| 105 | } | ||||
| 106 | 1 | 6µs | 1; | ||
| 107 | |||||
| 108 | ; |